<template>
    <div>
        <van-button plain type="primary"  @click="openUrl('/knowledge')">知识点</van-button>
<van-button plain type="success" @click="openUrl('/question')" >真题作文</van-button>
    </div>
  </template>
  
  <script setup>
import { ref } from "vue";
  import { useRouter } from "vue-router";
  const router = useRouter();
  import { reactive, toRefs } from 'vue';
  
  const openUrl = (url) => {
    // router.back();
    router.push(url);
};
  </script>
  
  <style scoped>
  
  </style>
  